package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechSettings;
import com.appkubes.mall.core.po.FintechSettingsExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechSettingsMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechSettingsSqlProvider.class, method="countByExample")
    long countByExample(FintechSettingsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechSettingsSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechSettingsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_settings",
        "where setting_key = #{settingKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String settingKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_settings (setting_key, setting_value, ",
        "description, create_time)",
        "values (#{settingKey,jdbcType=VARCHAR}, #{settingValue,jdbcType=VARCHAR}, ",
        "#{description,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})"
    })
    int insert(FintechSettings record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechSettingsSqlProvider.class, method="insertSelective")
    int insertSelective(FintechSettings record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechSettingsSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="setting_key", property="settingKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="setting_value", property="settingValue", jdbcType=JdbcType.VARCHAR),
        @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechSettings> selectByExampleWithRowbounds(FintechSettingsExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechSettingsSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="setting_key", property="settingKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="setting_value", property="settingValue", jdbcType=JdbcType.VARCHAR),
        @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechSettings> selectByExample(FintechSettingsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "setting_key, setting_value, description, create_time",
        "from fintech_settings",
        "where setting_key = #{settingKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="setting_key", property="settingKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="setting_value", property="settingValue", jdbcType=JdbcType.VARCHAR),
        @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP)
    })
    FintechSettings selectByPrimaryKey(String settingKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechSettingsSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechSettings record, @Param("example") FintechSettingsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechSettingsSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechSettings record, @Param("example") FintechSettingsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechSettingsSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechSettings record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_settings
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_settings",
        "set setting_value = #{settingValue,jdbcType=VARCHAR},",
          "description = #{description,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=TIMESTAMP}",
        "where setting_key = #{settingKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechSettings record);
}